package com.slmxz.tms.biz.service;

import com.slmxz.tms.biz.model.dto.OrderDispatchDTO;
import com.slmxz.tms.biz.model.entity.OrderDispatch;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 订单调度运输服务类
 *
 * @author sunyao
 *@Date 2025-04-02 21:14
 */
public interface OrderDispatchService extends IService<OrderDispatch> {

    /**
     * 订单派遣承运商和司机
     * @param orderDispatch
     */
    void dispatchOrder(OrderDispatchDTO orderDispatch)  throws Exception;

    /**
     * 撤销派遣的订单
     * @param orderDispatch
     */
    void cancelDispatchOrder(OrderDispatchDTO orderDispatch) throws Exception;

}
